    const data_demo = {
        "content": [
            ["5cda59c789f853397ef80653", "116.40", "39.90", "2019", "0", "001", "2018", "北京天使医院", 1, "110000000000"],
            ["5cda59c789f853397ef80654", "104.06", "30.67", "2019", "0", "002", "2019", "八一儿童医院", 2, "510000000000"],
            ["5cda59c789f853397ef80655", "116.90", "40", "2019", "0", "001", "2017", "北京市一医院", 3, "110000000000"],
            ["5cda59c789f853397ef80656", "115", "38", "2019", "0", "002", "2016", "北京市二医院", 4, "510000000000"],
            ["5cda59c789f853397ef80656", "115", "38", "2019", "0", "002", "2016", "北京市三医院", 4, "510000000000"]
        ],
        "count": 4,
        "header": [{
            "iden_code": "ID",
            "version": "2019-05-16 14:15:59"
        }, {
            "iden_code": "SMX",
            "version": "2019-05-16 14:15:59"
        }, {
            "iden_code": "SMY",
            "version": "2019-05-16 14:15:59"
        }, {
            "iden_code": "YEAR",
            "version": "2019-05-16 14:15:59"
        }, {
            "iden_code": "month",
            "version": "2019-05-16 14:15:59"
        }, {
            "id": "5cda576089f853397ef8064f",
            "iden_alias_code": "M",
            "iden_code": "B0010003",
            "iden_length": 255,
            "iden_name": "枚举测试",
            "iden_precision": 0,
            "iden_type": 4,
            "ident_version": "2018版",
            "identid": "5cd3fb9089f8c70c864bceec",
            "version": "2019-05-16 14:15:59"
        }, {
            "id": "5cda3e3389f853397ef8064d",
            "iden_code": "B0010026",
            "iden_length": 255,
            "iden_name": "日期测试",
            "iden_precision": 0,
            "iden_type": 3,
            "version": "2019-05-16 14:15:59"
        }, {
            "id": "5cda3e3389f853397ef8064e",
            "iden_alias_code": "NAME",
            "iden_code": "B0010024",
            "iden_length": 255,
            "iden_name": "文本测试",
            "iden_precision": 0,
            "iden_type": 1,
            "version": "2019-05-16 14:15:59"
        }, {
            "id": "5cda57cc89f853397ef80650",
            "iden_alias_code": "num",
            "iden_code": "B0010004",
            "iden_length": 8,
            "iden_name": "数字测试",
            "iden_precision": 2,
            "iden_type": 2,
            "iden_unit_name": "克",
            "version": "2019-05-16 14:15:59"
        }, {
            "id": "5cda580189f853397ef80651",
            "iden_alias_code": "QHCODE",
            "iden_code": "B0010005",
            "iden_length": 255,
            "iden_name": "区划代码",
            "iden_precision": 0,
            "iden_type": 1,
            "version": "2019-05-16 14:15:59"
        }],
        "pageNumber": 1,
        "pageSize": 10,
        "tableName": "T_MICRO_ZB21557806641454"
    }


    //格式化表格数据
    var inittableData = function (data) {
        if (data.hasOwnProperty("content")) {
            let header = data.header;
            let content = data.content;
            let arr = [];
            for (let i = 0; i < content.length; i++) {
                let item = content[i];
                let obj = {};
                for (let j = 0; j < header.length; j++) {
                    let iden_code = header[j].iden_code;
                    obj[iden_code] = item[j];
                }
                arr.push(obj);
            }
            return arr;
        }
    }
    //格式化麻点数据
    var initPockingData = function (data) {
        if (data.hasOwnProperty("content")) {
            let header = data.header;
            let content = data.content;
            let arr = [];
            for (let i = 0; i < content.length; i++) {
                let item = content[i];
                let obj = {};
                for (let j = 0; j < item.length; j++) {
                    let header_item = header[j];
                    if (header_item) { //针对后台返回数据错误（多返回）
                        if (header_item.hasOwnProperty("iden_alias_code")) {
                            let iden_code = header_item.iden_alias_code;
                            obj[iden_code] = {
                                name: header_item.iden_name || header_item.iden_code,
                                value: item[j]
                            };
                        } else {
                            let iden_code = header_item.iden_code;
                            obj[iden_code] = {
                                name: header_item.iden_name || header_item.iden_code,
                                value: item[j]
                            };
                        }
                    }
                }
                arr.push(obj);
            }

            let pockdata = [];
            for (let i = 0; i < arr.length; i++) {
                pockdata.push({
                    id: arr[i].ID.version,
                    // name: arr[i].NAME,
                    lon: arr[i].SMX.value,
                    lat: arr[i].SMY.value,
                    // regioncode: arr[i].QHCODE, 
                    // regioncode: 510100000000,
                    // regionname: "",
                    value: [arr[i].SMX.value, arr[i].SMY.value, 0],
                    // num: arr[i].num,
                    // NAME: arr[i].NAME,
                    // M: arr[i].M,
                    // YEAR: arr[i].YEAR,
                    // month: arr[i].MONTH,
                    data: arr[i]
                });
            }


            return pockdata;
        }
    }
    //格式化从ES中查询的数据为麻点数据
    var initPockingData_ESSearch = function (data) {
        let Len = data.data;
        let Arr = [];
        for (let i = 0; i < Len.length; i++) {
            let dataobj = {
                TYPE: 'ESSearch'
            }
            let properties = Len[i]._source.properties;
            for (let j in properties) {
                dataobj[j] = {
                    name: j,
                    value: properties[j]
                }
            }
            Arr.push({
                data: dataobj,
                id: '',
                lat: Len[i]._source.location[1],
                lon: Len[i]._source.location[0],
                value: [Len[i]._source.location[0], Len[i]._source.location[1], 0]
            })
        }
        return Arr;
    }
    //格式化热力图数据
    var initHeatData = function (data) {
        if (data.hasOwnProperty("content")) {
            let header = data.header;
            let content = data.content;
            let arr = [];
            for (let i = 0; i < content.length; i++) {
                let item = content[i];
                let obj = {};
                for (let j = 0; j < item.length; j++) {
                    let iden_code = header[j].iden_alias_code ? header[j].iden_alias_code : header[j].iden_code;
                    obj[iden_code] = item[j]
                }
                arr.push(obj);
            }

            let pockdata = [];
            for (let i = 0; i < arr.length; i++) {
                pockdata.push([arr[i].SMY, arr[i].SMX]);
            }

            return pockdata;
        }

    }
    export default {
        data_demo: data_demo,
        inittableData: inittableData,
        initPockingData: initPockingData,
        initPockingData_ESSearch: initPockingData_ESSearch,
        initHeatData: initHeatData
    };
